package com.hk.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hk.mybatis.entity.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 用户表
 *
 * @author By miaoj
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="sys_user")
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
public class User extends IdEntity<String> {

	private static final long serialVersionUID = 1L;

	/**
	 * 登录名/账号
	 */
	private String account;

	/**
	 * 显示名称
	 */
	private String name;

	/**
	 * 密码
	 */
	private String password;

	/**
	 * 用户类型 1:系统用户 2:项目用户
	 */
	private Integer type;

	private String lastOpened;

}
